Js how to write multiple ifs in a efficient way

welcome to shbcf.ru